/**
 * Created by likai on 17/2/19.
 */
const eventEmiter = require('events')
let myEvent = new eventEmiter()
myEvent.on('ask', (e) => {
    console.log('ask', e)
})
// 事件对象作为payload传递
myEvent.emit('ask', {type: 'ask'})

